import axios_ from '@/utils/axios'
import { getQueryString } from '@/plugins/utils'

export function getSiteData(params) {
  return axios_.post('/feinit/get', params);
}

export function getTempSiteData(params) {
  return axios_.post('/site/gettemp', params);
}

export function sendStaticsVisit(type, site_id) {
  if(process.env.NODE_ENV === 'development'){
    return
  }
	var jy_fr = getQueryString("stfr")
	var params = {
		"site_id": site_id,
		"t": type,
		"jy_fr": jy_fr,
	}
  //后端置cookie
	axios_.post("/feinit/s", params).then(function(){})
}
